package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.dto.question.QuestionQueryRequest;
import com.yupi.springbootinit.model.entity.Question;
import com.yupi.springbootinit.model.vo.QuestionVO;

import javax.servlet.http.HttpServletRequest;

public interface QuestionService extends IService<Question> {
    Wrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    QuestionVO getquestionVO(Question question, HttpServletRequest request);

    void validquestion(Question question, boolean b);

    Page<QuestionVO> getquestionVOPage(Page<Question> questionPage, HttpServletRequest request);
}
